package com.dule.Medic.pages;

import java.util.Date;
import org.apache.tapestry5.annotations.SessionState;

import com.dule.Medic.model.Doctor;

public class Index  
{        
	
	@SuppressWarnings("unused")
	@SessionState      
	private Doctor doctor;      
	private boolean doctorExists;     
	
	public Object onActivate()
	{         
		if (doctorExists) 
		{           
			return null;      
		}            
		return FirstPage.class;         
	}         
	
	public boolean isDoctorExists() 
	{                  
		return doctorExists;         
	} 
	
	public Date getCurrentTime()      
	{                 
		return new Date();       
	}         
	
}  
